package com.cdx.rule;

import com.netflix.loadbalancer.IRule;
import com.netflix.loadbalancer.RandomRule;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author chedx
 * @data 2020/12/6 12:49 PM
 */
@Configuration
public class MySelfRule {
    @Bean public IRule getRule() {
        return new RandomRule();
    }
}
